//
//  HDXNavigationViewController.m
//  test1
//
//  Created by henry on 16/11/1.
//  Copyright © 2016年 chen. All rights reserved.
//

#import "HDXNavigationViewController.h"

@interface HDXNavigationViewController ()

@end

@implementation HDXNavigationViewController


//+(void)initialize {
//    //取得设置主题的对象
//    UINavigationBar *navBar = [UINavigationBar appearance];
//    
//    //设置导航栏的背景图片
//    NSString *navBG = nil;
//    navBG = nil;
//    
//    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
//    
//    [navBar setTitleTextAttributes:@{
//                                    UITextAttributeTextColor : [UIColor colorWithRed:26/255 green:26/255 blue:26/255 alpha:0],
//                                    UITextAttributeFont : [UIFont systemFontOfSize:18]
//                                    
//                                    }];
//    
//}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - 设置界面
-(void)setupUI
{
    //设置导航栏背景颜色
    self.navigationBar.barTintColor = [UIColor greenColor];
//
    NSDictionary * dic = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
    //设置导航条的文本属性.
    [self.navigationBar setTitleTextAttributes:dic];
    
    //设置导航栏
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"tabbar_discover"] style:UIBarButtonItemStyleDone target:nil action:nil];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"广州" style:UIBarButtonItemStylePlain target:self action:@selector(modelView)];
    self.navigationItem.title = @"活动行";
    
}

- (void)modelView {
    NSLog(@"12345678");
}


@end
